#!/bin/bash

# 删除就jar
# 下载jar
#
rm -rf /home/admin/nong_shi_tong/farming-service-enterprise/*.jar
rm -rf /home/admin/nong_shi_tong/farming-service-manager/*.jar

mc cp myminio/archive/nong_shi_tong/manager/nst-manager-latest.jar /home/admin/nong_shi_tong/farming-service-manager
mc cp myminio/archive/nong_shi_tong/enterprise/nst-enterprise-latest.jar /home/admin/nong_shi_tong/farming-service-enterprise

# 重启docker compose
docker compose up --build -d
